﻿package Message.Public
{
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SDisplayPlayer extends Object
    {
        public var isEmpty:Boolean;
        public var miniPlayer:SMiniPlayer;
        public var otherInfos:Dictionary;
        public var time:int;
        public var id:SEntityId;

        public function SDisplayPlayer()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isEmpty);
            this.miniPlayer.__write(param1);
            DictIntIntHelper.write(param1, this.otherInfos);
            param1.writeInt(this.time);
            this.id.__write(param1);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.isEmpty = param1.readBool();
            this.miniPlayer = new SMiniPlayer();
            this.miniPlayer.__read(param1);
            this.otherInfos = DictIntIntHelper.read(param1);
            this.time = param1.readInt();
            this.id = new SEntityId();
            this.id.__read(param1);
            return;
        }// end function

    }
}
